package com.wn.class30.tools;



/** 
* @author 周豪 E-mail: 
* @version 创建时间：2020年3月12日 下午2:08:51 
* 类说明 :控制层规范.后台系统才需要加@RequiresPermissions 权限注解
*/

/*
@RestController
@Api(value = "用户权限管理",tags = "用户权限管理")
@RequestMaping(value="/houtai")
@Validated
public class UserPermissionControl {
	@Resource
	private UserPermissionService UserPermissionService;
	
	@ApiOperation(value = "根据用户查询其权限",notes ="根据用户查询其权限")
	@GetMapping("queryPremissionByUser/{uid}")
	@RequiresPermissions("/page/premission/user.html")
	public Result queryPremissionByUser(@PathVariable @NotNull Integer uid) throws Exception {
		List<UserPermission> queryPremissionByUser = UserPermissionService.queryPremissionByUser(uid);
		return new Result("200","success",null,queryPremissionByUser);
	}
	
	@ApiOperation(value = "根据用户更新其权限",notes ="根据用户更新其权限" )
	@GetMapping("updateUserPremission/{uid}")
	@RequiresPermissions("/page/premission/user.html")
	public Result updateUserPremission(@PathVariable @NotNull Integer uid, Integer[] mids) throws Exception {
		int updateUserPremission = UserPermissionService.updateUserPremission(uid, mids);
		return new Result("200","success",null,null);
	}
}
*/
